#include <iostream>
#include <process.h>
using namespace std;

void fun(void *)
{
	for (int i = 0; i < 1000; ++i)
	{
		cout << "Fun " << i << "\n";
	}
}

int main()
{
	cout << "Hello world!\n";

	_beginthread(fun, 0, 0);

}